package com.finance.rule.dao;

import com.finance.framework.lang.Page;
import com.finance.rule.bean.pojo.PieceRangeRule;
import com.finance.system.bean.pojo.Region;
import com.finance.system.bean.pojo.Supplier;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface PieceRangeMapper {
	PieceRangeRule getById(@Param("id") long id);
	List<PieceRangeRule> listAll();
	List<PieceRangeRule> listByPage(Page page);
	int add(PieceRangeRule pieceRange);
	int delete(@Param("uId") String uId,@Param("ids") List<String> ids);
	int update(PieceRangeRule pieceRange);
	int batchAdd(@Param("pieceRanges") List<PieceRangeRule> pieceRanges);
	List<PieceRangeRule> getPieceRangeRuleBySupplier(Supplier supplier);
	List<PieceRangeRule> getPieceRangeRuleByRegion(Region region);
	List<PieceRangeRule> getPieceRangeRuleByDirection(@Param("directionEnum") int directionEnum);
	List<PieceRangeRule> getPieceRangeRuleByTemperature(int temperatureEnum);
	List<PieceRangeRule> getPieceRangeRuleByScheduleType(int expressScheduleTypeEnum);
	List<PieceRangeRule> getPieceRangeRuleByPackageSize(int packageSizeEnum);
	List<PieceRangeRule> getPieceRangeRuleBySinger(int signerEnum);
 }